package com.yu.yurpcspringbootconsumer;

import com.yu.common.model.User;
import com.yu.common.service.UserService;
import com.yu.yurpcspringbootstarter.annotation.RpcReference;
import org.springframework.stereotype.Service;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

@Service
public class ExampleServiceImpl {

    @RpcReference
    private UserService userService;

    public void test() {
        User user = new User("小明");
        User resultUser = userService.getUser(user);
        System.out.println(resultUser.getName());


        Lock lock = new ReentrantLock();
        lock.newCondition();
    }

}
